<?php

/**
 * User: yangcheng
 */
header ( "Content-type:text/html;charset=utf-8" );  //统一输出编码为utf-8  

/**
 * 打印函数
 */
function println($msg)
{
    echo json_encode($msg);
}

/**
 * 通讯
 */
$account=$_POST['username'];//账号

//返回信息
$code = 400;
$msg = "账号有误！";
//是否插入成功判断
if ($account === "1338810****") {
	$code = 0;
	$msg =  "成功！" ;
	$responce->token = "1338810****"; //token
}

$responce->code = $code; //代码 
$responce->msg = $msg; //信息

println($responce);


